package com.rc.exception;

import com.rc.util.HttpCode;

public class ServiceException extends RuntimeException{

    private int code;

    private String message;

    public ServiceException(HttpCode httpCode){
        this.code = httpCode.getCode();
        this.message = httpCode.getMsg();

    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
